package lp.xian.production.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 成品列表对象 lp_finished_product
 *
 * @author ruoyi
 * @date 2023-07-05
 */
@Data
public class FinishedProduct extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键递增 */
    private Integer finishProductId;

    /** 成品名称 */
    @Excel(name = "成品名称")
    private String finishProductName;

    /** 成品数量 */
    @Excel(name = "成品数量")
    private Integer finishProductNum;

    /** 成品单位 */
    @Excel(name = "成品单位")
    private String finishProductUnit;
    /** 成品单位 */
    @Excel(name = "成品价格")
    private BigDecimal finishProductPrice;

    @Excel(name = "原料价格")
    private BigDecimal productPrice;

    /** 带班人员 */
    @Excel(name = "带班人员")
    private String fristDuty;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String fristDutyPhone;

    /** 班次 */
    @Excel(name = "班次")
    private String gradeClass;

    /** 上班时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上班时间", width = 30, dateFormat = "yyyy-MM-dd")
    private String officeTime;

    /** 下班时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "下班时间", width = 30, dateFormat = "yyyy-MM-dd")
    private String offTime;

    @Excel(name = "上班人数")
        private Integer officeNum;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("finishProductId", getFinishProductId())
                .append("finishProductName", getFinishProductName())
                .append("finishProductNum", getFinishProductNum())
                .append("finishProductUnit", getFinishProductUnit())
                .append("finishProductPrice", getFinishProductPrice())
                .append("productPrice", getProductPrice())
                .append("fristDuty", getFristDuty())
                .append("fristDutyPhone", getFristDutyPhone())
                .append("gradeClass", getGradeClass())
                .append("officeTime", getOfficeTime())
                .append("offTime", getOffTime())
                .append("remark", getRemark())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("officeNum", getOfficeNum())
                .toString();
    }
}
